import request from '@/utils/request'
// 销售-列表
export function getList(data) {
  return request({
    url: 'biz/sale/list',
    method: 'get',
    params: data
  })
}
// 销售-详情
export function getDetail(id) {
  return request({
    url: 'biz/sale/'+id,
    method: 'get'
  })
}
// 销售-增
export function getAdd(data) {
  return request({
    url: 'biz/sale',
    method: 'post',
    data
  })
}
// 销售-删
export function del(ids) {
  return request({
    url: 'biz/sale',
    method: 'delete',
    data: ids
  })
}
// 销售-改
export function getUpdate(data) {
  return request({
    url: 'biz/sale',
    method: 'put',
    data
  })
}
// 销售-审核
export function detailCheck(data) {
  return request({
    url: 'biz/sale/check',
    method: 'post',
    data
  })
}
// 销售-审核记录
export function detailRecords(id) {
  return request({
    url: 'biz/sale/records?id='+id,
    method: 'get',
  })
}

export default { getList, getAdd, del, getUpdate, getDetail, detailCheck, detailRecords}